import Layout from '@/Layout'
// import { dataTranslate } from 'utils/directive'

const sysRouter = {
  path: '/sys',
  name: 'System',
  component: Layout,
  meta: { title: '系统管理', icon: 'cog-outline', iconType: 'mdi' },
  children: [
    {
      path: '/permission',
      name: 'Permission',
      meta: { title: '权限', icon: 'permission', rightList: ['superadmin', 'admin', 'user'] },
      component: () => import('views/system/permission')
      // rightList: ['views', 'add', 'edit', 'del']
    },
    {
      path: '/config',
      name: 'Config',
      meta: { title: '配置项', icon: 'config', rightList: ['superadmin', 'admin', 'user'] },
      component: () => import('views/system/config')
      // rightList: ['AAA']
    }
  ]
}

export default sysRouter
